<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>前端体验</title>
    <style>
      button {
        background-color: brown;
        width: 100;
        height: 200;
        border-radius: 10;
        color: chartreuse;
        font-size: 18;
      }
    </style>
  </head>
  <body>
    <button>按钮</button>
    <ul><li>
      <a href="https://www.baidu.com" target="_blank">点击</a>
      <img src="" alt="图片文本">
    </li></ul>
    <script>
      document.querySelector("button").onclick = function () {
        console.log("hello`");
        setTimeout(() => {
          console.log("定时器");
        }, 2000);
        
      };
      
    </script>
  </body>
</html>
